package unilearn.facade;
import unilearn.domain.DataFile;

import java.sql.SQLException;
import javax.naming.NamingException;
import java.io.IOException;

import unilearn.da.DAFile;

public class FileFacade {
    public static long insertFile(DataFile file) throws SQLException, IOException {
        return DAFile.insertFile(file);
    }
    
    public static DataFile getFileByID(long fileID) throws SQLException, NamingException, IOException {
        return DAFile.getByFileID(fileID);
    }
}
